﻿@{
    var controller = ViewContext.Controller.ValueProvider.GetValue("controller").RawValue;
    }
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    @Html.Partial("_TaskSummary")
</head>
<body>
    <div class="page">
        <div id="header">
            <div id="title">
                <h1>MVC Task Manager</h1>

                <!--<a onclick="addSite();">Pin Site to Start Menu (Only for IE9)</a>-->
            </div>
            <div id="logindisplay">
                @Html.Partial("_LogOnPartial")
                
                @*Security issues [ @Html.ActionLink("Import/Export", "ImportExport", "Home") ]*@
            </div>
            <div id="menucontainer">
                <ul id="menu">
                    <li @if ( controller.Equals("Task")){ <text>class="selected"</text> }>@Html.ActionLink("All Tasks", "Index", "Task")</li>
                    <li @if ( controller.Equals("Status")){ <text>class="selected"</text> }>@Html.ActionLink("By Status", "Index", "Status")</li>
                    <li @if ( controller.Equals("Category")){ <text>class="selected"</text> }>@Html.ActionLink("By Category", "Index", "Category")</li>
                </ul>
            </div>
        </div>
        <div id="main">
            @RenderBody()
        </div>
        <div id="footer">
            <p>MVC Task Manager is available on <a href="http://mvctask.codeplex.com">Codeplex</a> | Licensed under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT License</a></p>
        </div>
    </div>
</body>
</html>
